package com.dongan.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import sun.security.krb5.Config;
import sun.security.provider.ConfigFile;

/**
 * <p>
 * 配置文件类型
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("d_config_file_kind")
public class ConfigFileKind implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键不自增,使用mp主键策略
     */
      @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 1
     */
    @TableField("P_ID")
    private BigDecimal pId;

    /**
     * 种类ID
     */
    @TableField("KIND_ID")
    private String kindId;

    /**
     * 种类名称
     */
    @TableField("KIND_NAME")
    private String kindName;

    /**
     * 种类级别
     */
    @TableField("KIND_LEVEL")
    private BigDecimal kindLevel;

    /**
     * 创建时间
     */
      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
      @TableField(value = "update_Time", fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 默认是0不删除,1表示删除
逻辑删除
     */
    @TableLogic
    private Integer deleted;


    @TableField(exist = false)
     private List<ConfigFileKind> list;
}
